package com.itheima.api;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while(true){
            System.out.println("请输入一个小数:");
            double num=sc.nextDouble();
            long round = Math.round(num);
            System.out.println(round);
        }


    }
}
